package com.fbs.demo1114;


import com.fbs.demo1114.service.BookShopService;

import com.fbs.demo1114.service.Carshier;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import java.util.ArrayList;
import java.util.List;

public class Test {
    public static void main(String[] args) {
        ApplicationContext app = new ClassPathXmlApplicationContext("spring01.xml");
        Carshier carshier = app.getBean(Carshier.class);
        List<String> list=new ArrayList<String>();
        list.add("1001");
        list.add("1002");
        carshier.buy(list,"栗毅");
//        BookShopService shopService = app.getBean(BookShopService.class);
//        shopService.purchase("1001", "栗毅");

    }
}
